/**
 * 本文件由尚数增量代码引擎生成
 * @author Shann <851188611@qq.com>
 */
import { request } from "./request";

export function getMerchants(param?: any) {
  return request("/admin/merchant", param);
}

export function getMerchant(param?: any) {
  return request("/admin/merchant/detail", param);
}

export function createMerchant(param?: any) {
  return request("/admin/merchant/create", param);
}

export function updateMerchant(param?: any) {
  return request("/admin/merchant/update", param);
}

export function deleteMerchant(param?: any) {
  return request("/admin/merchant/delete", param);
}

export function getCategories(param?: any) {
  return request("/admin/merchant-category", param);
}

export function getCategory(param?: any) {
  return request("/admin/merchant-category/detail", param);
}

export function createCategory(param?: any) {
  return request("/admin/merchant-category/create", param);
}

export function updateCategory(param?: any) {
  return request("/admin/merchant-category/update", param);
}

export function deleteCategory(param?: any) {
  return request("/admin/merchant-category/delete", param);
}
